package com.ecpss;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class lianxi {

    public static void main(String[] args) {
        Pattern pattern=Pattern.compile("[0-9]+");
        Matcher matcher = pattern.matcher("12xcs1");
        while (matcher.find()){//循环查找
            System.out.println(matcher.group(0));
        }
    }

    String regEx="[`~!@#$%^&*()+=|{}\':;',\\[\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]";
}
